/*输入一个年份，判断这个年份是不是闰年*/

#include <stdio.h>
int main()
{
	int year;
	printf("input the year:");
	scanf("%d",&year);
	while(year>=0)
	{
		if(year%4==0 && year%100!=0)
			printf("this year is leap year\n");
		else if(year%400==0)
			printf("this year is leap year\n");
		else
			printf("this year is common year\n");
		printf("input the year:");
		scanf("%d",&year);
	}
}
